xend: ioport & irq persistence thru reboot
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 3 Nov 2008 10:23:09 +0000 (10:23 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 3 Nov 2008 10:23:09 +0000 (10:23 +0000)
commit9cec91aba58722d189ef7f5c7257aed5fc072e8c
tree6a28f3d9b5145ee35489f58b9471ffcf8f05dc0a
parent3ac61e94cfe2532482b98002a5e2730f454feec7
xend: ioport & irq persistence thru reboot

When a domU is configured for a serial port as documented at:
   http://wiki.xensource.com/xenwiki/InstallationNotes

the VM does see the serial port, however when dom0 is rebooted and
the VM started it no longer has access to the serial port.

xm list -l <vm> no longer shows the ioports or irq attributes

Attached patch adds implementation of getDeviceConfiguration(),
returns details dict and implements waitForDevice() to irqif.py and
iopif.py.

Also added preprocess_irq() to create.py.

Signed-off-by: Pat Campbell <plc@novell.com>
tools/python/xen/xend/server/iopif.py
tools/python/xen/xend/server/irqif.py
tools/python/xen/xm/create.py